home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 3902 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  855 b 

  1. Path: oxy.rust.net!usenet
  2. From: ebennett@rust.net
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: MS VC++ 1.5/2.0: How to do DOS commands (.exe files etc)?
  5. Date: Fri, 26 Jan 1996 19:12:54 GMT
  6. Organization: Rust Net - High Speed Internet in Detroit  810-642-2276
  7. Message-ID: <4eauhm$47v@oxy.rust.net>
  8. References: <DLqLGr.3Cz@isc.mew.co.jp>
  9. NNTP-Posting-Host: liv-3.rust.net
  10. X-Newsreader: Forte Free Agent 1.0.82
  11.  
  12. tomio@ai.mew.co.jp (Steven J. Madsen) wrote:
  13.  
  14. >Someone answered a similar post saying to use the "system" command.  I
  15. >recall this is documented under Borland C++, but I can't get it to
  16. >work under MS VC++ 1.5 (I also have 2.0)
  17.  
  18. >So, does anyone know how to issue a DOS command (e.g., start a DOS
  19. >EXE file going) from within an app created using Visual C++ 1.5?
  20.  
  21. If you are writing a Windows program, you need to use the Windows API
  22. WinExec()
  23.  
  24. Earl
  25.  
  26.  
  27.